//-----------------------------------------------------------------------
//<copyright file="ChiTietPhieuXuat.cs" company="MinhSong">
//Copyright (c) MinhSong. All rights reserved.
//</copyright>
//-----------------------------------------------------------------------
using System;
using System.Runtime.Serialization;

namespace PMS.Entity
{
	public class ChiTietPhieuXuat: LuuKho
	{
		#region Variable Declarations

		private string m_MaCTPX;
		private int m_DonGia;
		private int m_SoLuong;
		private int m_GiaTrungThau;
		private string m_SoPX;
		private int m_MaLuuKho;

		#endregion

		#region Constructors

		public ChiTietPhieuXuat() {}
		public ChiTietPhieuXuat(
			string maCTPX,
			int donGia,
			int soLuong,
			int giaTrungThau,
			string soPX,
			int maLuuKho)
		{
			m_MaCTPX = maCTPX;
			m_DonGia = donGia;
			m_SoLuong = soLuong;
			m_GiaTrungThau = giaTrungThau;
			m_SoPX = soPX;
			m_MaLuuKho = maLuuKho;
		}

		#endregion

		#region Properties

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string MaCTPX
		{
			get { return m_MaCTPX; }
			set { m_MaCTPX = value;
				OnPropertyChanged("MaCTPX");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is int</value>
		[DataMember]
		public int DonGia
		{
			get { return m_DonGia; }
			set { m_DonGia = value;
				OnPropertyChanged("DonGia");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is int</value>
		[DataMember]
		public int SoLuong
		{
			get { return m_SoLuong; }
			set { m_SoLuong = value;
				OnPropertyChanged("SoLuong");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is int</value>
		[DataMember]
		public int GiaTrungThau
		{
			get { return m_GiaTrungThau; }
			set { m_GiaTrungThau = value;
				OnPropertyChanged("GiaTrungThau");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string SoPX
		{
			get { return m_SoPX; }
			set { m_SoPX = value;
				OnPropertyChanged("SoPX");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is int</value>
		[DataMember]
		public int MaLuuKho
		{
			get { return m_MaLuuKho; }
			set { m_MaLuuKho = value;
				OnPropertyChanged("MaLuuKho");
		}
		}
        /// <summary>
        ///
        /// </summary>
        ///<value>This type is string</value>
        [DataMember]
        public int Total
        {
            get { return (SoLuong*DonGia); }
        }

		#endregion
	}
}//End Class
